/**
 * 加载动画效果
 *
 **/
import {ElLoading} from 'element-plus'


const loa = ElLoading.service({
    lock: true,
    text: '加载中...',
    background: 'rgba(0, 0, 0, 0.7)',
})
export const loading = {
    show: () => {
        loa.lock
    },
    hide: () => {
        setTimeout(() => {
            loa.close()
        }, 1000)
    },
}
